﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace PhoneBilling.Models
{
    public class ExtensionEditModel
    {
        public string GroupID { get; set; }
        public string SourceGroupID { get; set; }

        public bool IsToSearch { get; set; }

        [Required(ErrorMessage = "请输入分机号码.")]
        [Display(Name = "分机号码：")]
        public string 分机号码 { get; set; }

        public List<UITraiff> TraiffList { get; set; }
        [Required(ErrorMessage = "请选择费率.")]
        [Display(Name = "费率：")]
        public string 费率 { get; set; }

        public List<UIGrade> GradeList { get; set; }
        [Required(ErrorMessage = "请选择收费等级.")]
        [Display(Name = "收费等级：")]
        public string 收费等级 { get; set; }

        [Required(ErrorMessage = "请选择收费话类.")]
        [Display(Name = "收费话类：")]
        public string 收费话类 { get; set; }
        public List<UIAreaType> 话类List { get; set; }

        [Required(ErrorMessage = "请输入报警限额.")]
        [Display(Name = "报警限额：")]
        public int 报警限额 { get; set; }

        [Required(ErrorMessage = "请输入月杂费.")]
        [Display(Name = "月杂费：")]
        public decimal 月杂费 { get; set; }

        [Display(Name = "用户名：")]
        public string 用户名 { get; set; }

        [Display(Name = "地址：")]
        public string 地址 { get; set; }

        [Display(Name = "分机功能：")]
        public short 分机功能 { get; set; }

        [Display(Name = "机架线号：")]
        public string 机架线号 { get; set; }

        [Display(Name = "安装日期：")]
        public DateTime 安装日期 { get; set; }

        [Display(Name = "备注：")]
        public string 备注 { get; set; }

        public bool IsNew { get; set; }
    }
}